/**
 * 
 */
package uniriotec.dsw.tickets.dao.util;

import uniriotec.dsw.tickets.dao.DAOFactory;
import uniriotec.dsw.tickets.dao.implHibernate.DAOFactoryHibernate;
import uniriotec.dsw.tickets.dao.implJPA.DAOFactoryJPA;

/**
 * @author alberto
 *
 */
public class DAOUtil {
    private static final DAOFactory daoFactory = buildDAOFactory();

    private static DAOFactory buildDAOFactory() {
        return new DAOFactoryHibernate();
        //return new DAOFactoryJPA();
    }

    public static DAOFactory getDAOFactory() {
        return daoFactory;
    }
}
